package cn.lee.test.common.base.model;

/**
 * @author : lichl(李承霖)
 * create: 2021/4/15 11:10
 * 数据持久化时的通用字段
 */
public interface CurdModel<ID>{
  
  long getCreatedAt();
  
  long getUpdatedAt();
  
  ID getId();
  
  void setCreatedAt(long createAt);
  
  void setUpdatedAt(long updateAt);
  
  void setId(ID id);
  
  boolean isValidKey();
}
